<? if($this->member_type=="buyer"):?>
	<div id="hasLoginPannel">
	  <div><a href="<?=MY_URL?>/adminb"><?=$this->username?></a></div>
	  <div><a href="<?=MY_URL?>/adminb">Management</a></div>
	  <div><a href="<?=MY_URL?>/product-showitem">Shopping list ( <?=$this->showItemCounts?> )</a></div>
	  <div><a href="<?=MY_URL?>/product-pay">Your orders( <?=$this->orderCounts?> )</a></div>
	  <div><a href="<?=MY_URL?>/auth-logout">Logout</a></div>
	</div>
<?elseif($this->member_type=="administrator"):?>
	<div id="hasLoginPannel">
	  <div><?=$this->username?></div>
	  <div><a href="<?=MY_URL?>/administrator">进入管理后台</a></div>
	  <div><a href="<?=MY_URL?>/administrator-auth-logout">Logout</a></div>
	</div>
<?else:?>
	<form name="LoginForm" id="LoginForm" method="post" action="auth-dologin" onsubmit="return checkLogin();">
		<div><label for="Username">&nbsp;&nbsp;&nbsp;Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input name="username" id="Username" type="text" class="input1" /></div>
		<div><label for="Password">Password:&nbsp;</label><input name="userpass" id="Password" type="password" class="input1"  /></div>
		<div><label for="ConfirmCode">&nbsp;&nbsp;&nbsp;Verified:&nbsp;&nbsp;&nbsp;</label><input name="useryz" id="useryz" type="text" class="input1" autocomplete="off" /></div>
		<div id="hiddenConfirmCode"><img src="auth-confirmcode" onclick="refreshItemYz(this);" id="yzImg" /></div>
		<div align="center"><input type="submit" value="Login"/></div>
	</form>
<?endif;?>
<script>
function checkLogin(){
	if(trim($('#Username').val())==""){
		alert("Please input your email!");
		return false;
	}
	if(trim($('#Password').val())==""){
		alert("Please input your password!");
		return false;
	}
	if(trim($('#useryz').val())==""){
		alert("Please input your verified code!");
		return false;
	}
}
</script>